package com.ynet.middleground.approve.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 作废流程请求对象
 * @date 2019-11-03 19:06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "作废流程请求对象", description = "作废流程请求对象，实现删除流程实例")
public class CancelProcessReq extends BaseReqObj {

    private static final long serialVersionUID = 2112345465018780476L;

    @ApiModelProperty(value = "流程实例ID", notes = "流程实例ID", dataType = "String", required = true)
    @NotBlank(message = "流程实例ID不能为空")
    private String processInstanceId;

    @ApiModelProperty(value = "作废原因", notes = "作废原因", dataType = "String", required = true)
    @NotBlank(message = "作废原因不能为空")
    private String reason;

}
